{include file='../../../PublicView/include.html'}
<script src="/assets/shopadmin/shopmodule/kami.js"></script>
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>奖品管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
				</ul>
		
			<!--内容部分-->
			{include file='../../../PublicView/showmessage.html'}
			<div class="row">
			  <div id="tab">
					 <ul class="bui-tab nav-tabs">
					 <form class="pull-right" method="post" action="/?c=kami&m=shopadmin">
						 <input type="radio" name="stp" value="0" {if $stp==0}checked="checked" {/if} />卡号
						 <input type="radio" name="stp" value="1" {if $stp==1}checked="checked" {/if}/>昵称
						<input type="text" name="serch" value="{$search|default:""}" class="control-text search-query">
						<button type="submit" class="button-small">搜索</button>
					 </form>
					 {foreach from=$tools key=key item=item}
					 {if $item.status}
					 <li class="bui-tab-item {if $ctp==$key} bui-tab-item-selected{/if}" data-admin="{$admin}" data-tp="{$key}"><span class="bui-tab-item-text">{$item.name}</span></li>
					 {/if}
					 {/foreach}
					 </ul>
			  </div>
			  <div class="form-horizontal">
			  <table cellspacing="0" class="table table-bordered" style="border-top:none">
          <tbody>
            <tr>
              <th width="15"></th>
              <th width="200">卡号</th>
              <th width="200">密码</th>
              <th width="60">所属奖品</th>
              <th width="60">状态</th>
              <th width="30">中奖人</th>
            </tr>
		  {foreach key=key item=item from=$data}
            <tr class="re{$ctp}{$item.id}">
              <td></td>
              <td>{$item.cardno}</td>
              <td>{$item.secret}</td>
              <td>{$item.giftname}</td>
              <td>
			  {if $item.status==9}<span class="label label-success">{$item.status_name}</span>{/if}
			  {if $item.status<=8}<span class="label">{$item.status_name}</span>{/if}
			  </td>
              <td>{$item.nick}</td>
			  </td>
            </tr>
		{/foreach}
          </tbody>
        </table>
		<div>
		<ul class="bui-tab nav-tabs pull-left">
			{if $type==9}
			 <li class="pull-right"><button class="button button-small button-success list" data-ctp="{$ctp}"><i class="icon icon-white icon-list"></i>列表</button></li>
			 {else}
			 <li class="pull-right"><button class="button button-small button-warning trash" data-ctp="{$ctp}"><i class="icon icon-white icon-trash"></i>回收站</button></li>
			 {/if}
		</ul>
		  <div class="pagination pull-right" data-totalpg="{$totalpg}" data-curpg="{$curpg}" data-action="{$current}">
			{$page}
          </div>
        </div>
			  </div>
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />
        <!--内容部分-->
        </div>
</div>